<template>
    <div>
        {{title}}
        {{title2}}
        <button @click='change'>改title</button>
    </div>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'XXX',
    props:['title','title2'],
    data() {
        return {
        
        }
    },
    methods: {
      change(){
        this.$emit('update:title','hello zhufeng')
        this.$emit('update:title2','hello zhufeng2')
      }
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>